﻿using System;
using System.Collections.Generic;
using System.Text;
using Hkwl.WorldExpo.Merchant.Model;
using System.Collections;

namespace Hkwl.WorldExpo.Merchant.Service
{
    public interface IClientService
    {
        #region NxClient 对象

        NxClient GetNxClientById(int clientId);

        bool InsertNxClient(NxClient client);

        bool UpdateNxClient(NxClient client);

        bool CheckNxClientByCellphone(string cellphone, int merchantId);

        int GetNxClientByCellphone(string cellphone, int merchantId);

        bool DeleteNxClient(int clientId);

        IList<NxClient> GetNxClientCollection(int merchantId,int pageIndex, int pageSize, ref int count);

        IList<NxClient> GetNxClientNotInGroup(int groupId,int merchantId);

        IList<NxClient> GetNxClientInGroup(int groupId,int merchantId);

        #endregion

        #region NxGroup 对象

        bool InsertNxGroup(NxGroup group);

        bool DeleteNxGroup(int groupId);

        IList<NxGroup> GetNxGroupCollection(int merchantId);

        bool UpdateNxGroup(NxGroup group);

        NxGroup GetNxGroupById(int groupId);

        int GetNxGroupCountByName(string groupName, int merchantId);

        #endregion

        #region NxGroupClient 对象

        bool InsertNxGroupClient(NxGroupClient groupClient);

        IList<NxGroupClient> GetNxGroupClientCollection(int groupId, int pageIndex, int pageSize, ref int count);

        bool DeleteNxGroupClient(int groupId, int clientId);

        bool DeleteNxGroupClientByGroup(int groupId);
        #endregion
    }
}
